package com.bjpowernode.web.resp.view;

import com.bjpowernode.api.dto.ProductBidInfo;
import com.bjpowernode.api.dto.ProductIncomeInfo;
import com.bjpowernode.api.model.BidInfo;
import com.bjpowernode.util.CommonUtils;

/**
 * @author 麦翔盛
 * @ClassName: ProductBidInfo
 * @description: 用户充值记录
 * @date 2022/5/26 16:18
 */
public class ProductBidView extends BidInfo {
    private String productName;
    private String userBidTime;


    public String getUserBidTime() {
        return userBidTime;
    }

    public void setUserBidTime(String userBidTime) {
        this.userBidTime = userBidTime;
    }

    public ProductBidView(ProductBidInfo productBidInfo) {
        setProductName(productBidInfo.getProductName());
        setBidMoney(productBidInfo.getBidMoney());
        if (productBidInfo.getBidTime() != null){
            setUserBidTime(CommonUtils.formatDate(productBidInfo.getBidTime()));
        }
    }



    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
}
